//
//  CDImages.h
//  freeLance
//
//  Created by s.zalozniy on 4/13/13.
//  Copyright (c) 2013 Mozi Development. All rights reserved.
//

#import <CoreData/CoreData.h>
#import "Images.h"

@class CDCollections, CDProducts;

@interface CDImages : NSManagedObject

@property (nonatomic, retain) NSNumber * isSynchronized;
@property (nonatomic, retain) NSString * url;
@property (nonatomic, retain) NSSet *collection;
@property (nonatomic, retain) NSSet *products;

@property (nonatomic, retain, readonly) NSString *imagePath;
@property (nonatomic, retain, readonly) NSString *imagePathThumbnail200;
@property (nonatomic, retain, readonly) NSString *imagePathThumbnail60;

+(CDImages *) imageWithImageInfo:(Images *)imageInfo inContext:(NSManagedObjectContext *)context;
-(void) updateWithImageInfo:(Images *)imageInfo inContext:(NSManagedObjectContext *)context;


@end

@interface CDImages (CoreDataGeneratedAccessors)

- (void)addCollectionObject:(CDCollections *)value;
- (void)removeCollectionObject:(CDCollections *)value;
- (void)addCollection:(NSSet *)values;
- (void)removeCollection:(NSSet *)values;

- (void)addProductsObject:(CDProducts *)value;
- (void)removeProductsObject:(CDProducts *)value;
- (void)addProducts:(NSSet *)values;
- (void)removeProducts:(NSSet *)values;

@end
